package com.myaxuan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by pc255 on 2018/4/11.
 */

@Controller
public class Hello {

	@RequestMapping("/hello")
	@ResponseBody
	public String  hello(@RequestParam(value = "name") String name){
		return "Hello Spring Cloud and " + name;
	}
}
